package yunhe.dao;

import org.apache.ibatis.annotations.Param;
import yunhe.entity.BoardInfo;

import java.util.List;
import java.util.Map;

public interface BoardDao {
	
	/**
	 * 获取板块
	 * @return
	 */
	public List<BoardInfo> getBoard();
	
	
	/**
	 * 批量修改板块名
	 * @param bid_bname
	 * @return
	 */
    public int updateBoard(Map<Integer,String> bid_bname);
	public int updateBoard(@Param(value="bid")int bid,@Param(value="bname")String bname);
    
    /**
     * 批量删除板块
     * @param bids
     * @return
     */
    public int delBoard(int[] bids);
    
    
    /**
     * 批量添加板块
     * @param bnames
     * @return
     */
    public int addBoard(String[] bnames);

	public int addBoard(String bname);
}
